
#include "Ui.h"


//-----------------------
CMenuManage::CMenuManage()
{
	m_pMenu = NULL ;
}

CMenuManage::~CMenuManage()
{
}

//key massage:
void CMenuManage::Show(PCMenuBase pMenu) 
{
	m_pMenu = pMenu ;
}

void CMenuManage::Del(PCMenuBase pMenu)
{
	G2_NOT_USED(pMenu) ;
	
	m_pMenu = NULL ;
}

BOOL CMenuManage::IsMenuShowing()
{
	if(m_pMenu != NULL)
	{
		return TRUE;
	}

	return FALSE ;
}

void  CMenuManage::Manage()
{
	if(m_pMenu != NULL)
	{
		LPOINT pt = {0, 0} ;
		m_pMenu->SetCursorPosition(pt);
		m_pMenu->Manage() ;

	}
}

//-----------------------
CMenuManage g_MenuManage;



